Northwoods.GoWPF 2.2.4 Assembly
GraphModel<NodeType,NodeKey> Class Members
Properties  Methods  Events


The following tables list the members exposed by GraphModel<NodeType,NodeKey>.

Public Constructors
 NameDescription
Public ConstructorGraphModel<NodeType,NodeKey> Constructor The default constructor produces an empty model.  
Top
Public Properties
 NameDescription
Public PropertyDataFormat Gets or sets the format of this model's data. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyFromNodesPath Gets or sets a property path that that specifies how to get the collection of keys of node data from which links come.  
Public PropertyGroupNodePath Gets or sets a property path that that specifies how to get the key for "container" or group node data of a node data object.  
Public PropertyHasUndoManager Gets or sets a flag that enables or disables support for undo and redo. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyIsChangingModelThis property is true during a call to ChangeModel, indicating a change happening due to an undo or a redo. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyIsInTransactionThis property is true after a StartTransaction and before a corresponding CommitTransaction or RollbackTransaction. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyIsModified Gets or sets whether this model is considered changed from an earlier state. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyMemberNodesPath Gets or sets a property path that that specifies how to get a list of keys for the "member" nodes of a group node data object.  
Public PropertyModifiable Gets or sets whether various model-changing methods are enabled. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyName A name for this model. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyNodeCategoryPath Gets or sets a property path that that specifies how to find the category of a node data.  
Public PropertyNodeIsGroupPath Gets or sets a property path that that specifies how to find out whether a node data is also a "container" group.  
Public PropertyNodeKeyIsNodeData Gets or sets whether all node data are also their own keys.  
Public PropertyNodeKeyPath Gets or sets a property path that that specifies how to get the key for node data.  
Public PropertyNodeKeyReferenceAutoInsertsGets or sets whether a NodeKey reference, when NodeKeyIsNodeData is true, automatically inserts the node into NodesSource.  
Public PropertyNodesSource Gets or sets the collection of node data items for the model.  
Public PropertySkipsUndoManagerGets or sets a flag that tells OnChanged whether it should notify any UndoManager that a change has occurred. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyToNodesPath Gets or sets a property path that that specifies how to get the collection of keys of node data to which links go.  
Public PropertyUndoManagerGets or sets the UndoManager for this model. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public PropertyValidCycle Specify what kinds of graphs this model allows.  
Top
Protected Properties
 NameDescription
Protected PropertyInitializing Gets or sets whether the model is being constructed or re-constructed. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Top
Public Methods
 NameDescription
Public MethodAddCollectionCopy Copy existing node data and add to this model.  
Public MethodAddFromNodeKey Add a "from" node data's key value to a node data's list of nodes from which links come.  
Public MethodAddLink Create a link between two nodes.  
Public MethodAddMemberNodeKey Add a "member" node data's key value to a node data's list of "members".  
Public MethodAddNodeAdd a node data to NodesSource.  
Public MethodAddNodeCopy Add a copy of a node data to this model.  
Public MethodAddToNodeKey Add a "to" node data's key value to a node data's list of nodes to which links go.  
Public MethodChangeModel This is called during an Undo or a Redo to actually make state changes to this model or to this model's data. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public MethodClearUnresolvedReferences Forget all unresolved delayed or forward references.  
Public MethodCommitTransaction Call the UndoManager's CommitTransaction method. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public MethodCreateCopyDictionaryCreate an ICopyDictionary initialized for this model.  
Public MethodCreateDataCollectionCreate an empty IDataCollection for this model.  
Public MethodCreateInitializedCopyMake a copy of this model, without sharing the NodesSource collection.  
Public MethodDoFromNodeKeyAdded This should be called when a "from" node data key has been added to the collection of "from" node keys.  
Public MethodDoFromNodeKeyRemoved This should be called when a "from" node data key has been removed from the collection of "from" node keys.  
Public MethodDoFromNodeKeysChanged This should be called when a node data's list of "from" nodes has been replaced.  
Public MethodDoGroupNodeChanged This should be called when a node data's membership in a group may have changed.  
Public MethodDoMemberNodeKeyAdded This should be called when a "member" node data key has been added to the collection of "member" node keys.  
Public MethodDoMemberNodeKeyRemoved This should be called when a "member" node data key has been removed from the collection of "member" node keys.  
Public MethodDoMemberNodeKeysChanged This should be called when a node data's list of "member" nodes has been replaced.  
Public MethodDoNodeAddedThis should be called when a node data object is added to the NodesSource collection.  
Public MethodDoNodeCategoryChanged This should be called when a node data's category value may have changed.  
Public MethodDoNodeKeyChanged This should be called when a node data's key value may have changed.  
Public MethodDoNodeRemovedThis should be called when a node data object is removed from the NodesSource collection.  
Public MethodDoToNodeKeyAdded This should be called when a "to" node data key has been added to the collection of "to" node keys.  
Public MethodDoToNodeKeyRemoved This should be called when a "to" node data key has been removed from the collection of "to" node keys.  
Public MethodDoToNodeKeysChanged This should be called when a node data's list of "to" nodes has been replaced.  
Public MethodFindNodeByKey Given a key, find the node data with that key.  
Public MethodGetCategoryForNode This method gets the category of a node.  
Public MethodGetConnectedNodesForNode Return a sequence of node data that are directly connected to a given node, in either direction.  
Public MethodGetFromNodesForNode Return a sequence of node data that are directly connected by links going into a given node.  
Public MethodGetGroupForNode Return the container group node data for a given node data, if there is one.  
Public MethodGetIsGroupForNode This predicate is true if a given node data may be a group (i.e. a container) of other nodes.  
Public MethodGetMemberNodesForGroup Return a sequence of node data that are immediate members of a given node data.  
Public MethodGetNodeTypeReturn the NodeType.  
Public MethodGetToNodesForNode Return a sequence of node data that are directly connected by links coming out from a given node.  
Public MethodIsLinked This predicate is true if there is a link from one node data to another one.  
Public MethodIsLinkValid This predicate is true if adding a link between two nodes would result in a valid graph.  
Public MethodIsMemberThis predicate is true if the membernodedata is a member of the groupnodedata container group.  
Public MethodIsMemberValidThis predicate is true if adding membernodedata to a group node (groupnodedata) would result in an invalid graph.  
Public MethodIsNodeData This predicate is true if the argument is a node data in this model.  
Public MethodIsNodeTypeThis predicate is true when the argument is an instance of NodeType.  
Public MethodIsRelinkValid This predicate is true if adding a link between two nodes after removing an existing one would result in a valid graph.  
Public MethodLoadOverloaded. Given a Linq for XML XContainer holding node data, replace this model's NodesSource collection with a collection of new node data.  
Public MethodRaiseChangedRaise a Changed event, given a ModelChangedEventArgs. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public MethodRaisePropertyChangedOverloaded. Raise a Changed event, given before and after values for a particular property. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public MethodRemoveFromNodeKey Remove a "from" node data's key value from a node data's list of nodes from which links come.  
Public MethodRemoveLink Remove any link between two nodes.  
Public MethodRemoveMemberNodeKey Remove a child node data's key value from a group node data's list of "member" key values.  
Public MethodRemoveNodeRemove a node data from NodesSource.  
Public MethodRemoveToNodeKey Remove a "to" node data's key value from a node data's list of nodes to which links go.  
Public MethodResolveAllReferencesCause ResolveNodeKey to be called on each known delayed or forward node reference.  
Public MethodRollbackTransaction Call the UndoManager's RollbackTransaction method. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Public MethodSave<NodeDataType>Generate a Linq for XML XElement holding all of the node data.  
Public MethodSetFromNodeKeys Replace a node data's list of "from" node key values.  
Public MethodSetGroupNodeKey Change a node data so that it refers to a different container group node data, by node key.  
Public MethodSetMemberNodeKeys Replace a node data's list of "member" key values.  
Public MethodSetToNodeKeys Replace a node data's list of "to" node key values.  
Public MethodStartTransaction Call the UndoManager's StartTransaction method. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Top
Protected Methods
 NameDescription
Protected MethodAugmentCopyCollection Override this method to add more (related) data to be copied.  
Protected MethodAugmentCopyDictionary Override this method to avoid copying some data, or to change how copied references are resolved.  
Protected MethodChangeDataValueOverridden.  This is called during undo or redo to effect state changes to model data.  
Protected MethodChangeModelValueOverridden.  This is called during undo or redo to effect state changes to this model.  
Protected MethodCheckLinkValid This predicate is true if adding a link between two nodes/ports would result in a validly structured graph.  
Protected MethodCheckMemberValid This predicate is true if adding a node to a group node would result in an invalid graph.  
Protected MethodCopyNode1 This is the first pass of copying node data, responsible for constructing a copy and copying most of its properties.  
Protected MethodCopyNode2 This is the second pass of copying node data, responsible for fixing up references to other objects.  
Protected MethodDeleteFromNodeKeyThis method actually implements the modification of a node data so that it's collection of "from" node data keys does not include a given fromkey.  
Protected MethodDeleteLink This method actually implements the removal of a link between two nodes.  
Protected MethodDeleteMemberNodeKeyThis method actually implements the modification of a node data so that it's collection of children node data does not include a given memberkey.  
Protected MethodDeleteNodeThis method actually implements the removal of a node data from the NodesSource collection.  
Protected MethodDeleteToNodeKeyThis method actually implements the modification of a node data so that it's collection of "to" node data keys does not include a given tokey.  
Protected MethodFindCategoryForNode Find the category of a node data.  
Protected MethodFindFromNodeKeysForNode Find the collection of "from" node key values.  
Protected MethodFindGroupKeyForNode Find containing group node key for a given node data, if any.  
Protected MethodFindIsGroupForNode Find whether a node data is a group or container of other nodes.  
Protected MethodFindKeyForNode Find the key for node data.  
Protected MethodFindMemberNodeKeysForNode Find the list of keys of the children nodes for a node data object.  
Protected MethodFindToNodeKeysForNode Find the collection of "to" node key values.  
Protected MethodHandleNodePropertyChangedThis is the System.ComponentModel.INotifyPropertyChanged event handler for node data.  
Protected MethodInsertFromNodeKeyThis method actually implements the modification of a node data so that it's collection of "from" node data keys includes a given fromkey.  
Protected MethodInsertLink This method actually implements the addition of a link between two nodes.  
Protected MethodInsertMemberNodeKeyThis method actually implements the modification of a node data so that it's collection of member node data includes a given memberkey.  
Protected MethodInsertNodeThis method actually implements the addition of a node data to the NodesSource collection.  
Protected MethodInsertToNodeKeyThis method actually implements the modification of a node data so that it's collection of "to" node data keys includes a given tokey.  
Protected MethodMakeNodeKeyUnique This method is called when a duplicate key has been found.  
Protected MethodModifyFromNodeKeys This method actually implements the replacement of a node data's collection of "from" node keys.  
Protected MethodModifyGroupNodeKeyThis method actually implements the modification of a node data so that its reference to a containing group node data (if any) is the given groupkey.  
Protected MethodModifyMemberNodeKeys This method actually implements the replacement of a group node data's collection of member node keys.  
Protected MethodModifyToNodeKeys This method actually implements the replacement of a node data's collection of "to" node keys.  
Protected MethodOnChangedRaises the Changed event. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Protected MethodReinitializeReset the fields that should not be shared from a copy created by System.Object.MemberwiseClone. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Protected MethodResolveNodeKeyThis is called repeatedly by ResolveAllReferences, once for each known delayed or forward node reference.  
Top
Public Events
 NameDescription
Public EventChanged The Changed event is raised whenever the model is modified. (Inherited from Northwoods.GoXam.Model.DiagramModel)
Top
See Also

Reference

GraphModel<NodeType,NodeKey> Class
Northwoods.GoXam.Model Namespace
IDiagramModel Interface

 

 


© Northwoods Software 2017. All Rights Reserved.

Send Feedback